local M = {
  'nvim-telescope/telescope.nvim', tag = '0.1.6',
  dependencies = { 'nvim-lua/plenary.nvim' }
}

function M.config()
  local wk = require "which-key"
  local builtin = require('telescope.builtin')
  wk.register {
    ["<leader>ff"] = { builtin.find_files, "Find File" },
    ["<leader>fg"] = { builtin.live_grep, "Live Grep" },
    ["<leader>fb"] = { builtin.buffers, "Find Buffer" },
    ["<leader>fh"] = { builtin.help_tags, "Help" },
  }

  local telescope = require("telescope")
  local actions = require("telescope.actions")
  telescope.setup({})
end

return M
